Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHCS 4.0 Branding #83

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
mgr/dashboard: use downstream docs link
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
  • Loading branch information
epuertat committed Dec 19, 2019
commit 0be092b62522e2d8340c02925c042b3ee38b46b6
Expand Up @@ -6,6 +6,7 @@ import { Subscription } from 'rxjs';

import { IscsiService } from '../../../shared/api/iscsi.service';
import { CriticalConfirmationModalComponent } from '../../../shared/components/critical-confirmation-modal/critical-confirmation-modal.component';
import { DocUrls } from '../../../shared/constants/app.constants';
import { TableComponent } from '../../../shared/datatable/table/table.component';
import { CellTemplate } from '../../../shared/enum/cell-template.enum';
import { CdTableAction } from '../../../shared/models/cd-table-action';
Expand Down Expand Up @@ -128,8 +129,9 @@ export class IscsiTargetListComponent implements OnInit, OnDestroy {
});
} else {
const summary = this.summaryservice.getCurrentSummary();
// @ts-ignore
const releaseName = this.cephReleaseNamePipe.transform(summary.version);
this.docsUrl = `http://docs.ceph.com/docs/${releaseName}/mgr/dashboard/#enabling-iscsi-management`;
this.docsUrl = DocUrls.iscsi;
this.status = result.message;
}
});
Expand Down
Expand Up @@ -3,6 +3,7 @@ import { ActivatedRoute } from '@angular/router';

import { I18n } from '@ngx-translate/i18n-polyfill';

import { DocUrls } from '../../../shared/constants/app.constants';
import { CephReleaseNamePipe } from '../../../shared/pipes/ceph-release-name.pipe';
import { SummaryService } from '../../../shared/services/summary.service';

Expand All @@ -29,10 +30,9 @@ export class Nfs501Component implements OnInit, OnDestroy {
return;
}

// @ts-ignore
const releaseName = this.cephReleaseNamePipe.transform(summary.version);
this.docsUrl =
`http://docs.ceph.com/docs/${releaseName}/mgr/dashboard/` +
`#configuring-nfs-ganesha-in-the-dashboard`;
this.docsUrl = DocUrls.nfs;

setTimeout(() => {
subs.unsubscribe();
Expand Down
@@ -1,6 +1,7 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';

import { DocUrls } from '../../../shared/constants/app.constants';
import { CephReleaseNamePipe } from '../../../shared/pipes/ceph-release-name.pipe';
import { SummaryService } from '../../../shared/services/summary.service';

Expand All @@ -26,11 +27,9 @@ export class Rgw501Component implements OnInit, OnDestroy {
return;
}

// @ts-ignore
const releaseName = this.cephReleaseNamePipe.transform(summary.version);
this.docsUrl =
`http://docs.ceph.com/docs/${releaseName}/mgr/dashboard/` +
`#enabling-the-object-gateway-management-frontend`;

this.docsUrl = DocUrls.rgw;
setTimeout(() => {
subs.unsubscribe();
}, 0);
Expand Down
Expand Up @@ -2,6 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';

import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal';

import { DocUrls } from '../../../shared/constants/app.constants';
import { CephReleaseNamePipe } from '../../../shared/pipes/ceph-release-name.pipe';
import { AuthStorageService } from '../../../shared/services/auth-storage.service';
import { SummaryService } from '../../../shared/services/summary.service';
Expand Down Expand Up @@ -31,8 +32,9 @@ export class DashboardHelpComponent implements OnInit {
return;
}

// @ts-ignore
const releaseName = this.cephReleaseNamePipe.transform(summary.version);
this.docsUrl = `http://docs.ceph.com/docs/${releaseName}/mgr/dashboard/`;
this.docsUrl = DocUrls.base;

setTimeout(() => {
subs.unsubscribe();
Expand Down
Expand Up @@ -11,6 +11,15 @@ export class AppConstants {
public static readonly licenseNumber = '3.0 (CC-BY-SA-3.0)';
}

export class DocUrls {
public static readonly base =
'https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/html-single/dashboard_guide/index';
public static readonly rgw = `${DocUrls.base}#object-gateway`;
public static readonly iscsi = `${DocUrls.base}#iscsi-functions`;
public static readonly nfs = `${DocUrls.base}`;
public static readonly grafana = `${DocUrls.base}`;
}

export enum URLVerbs {
/* Create a new item */
CREATE = 'create',
Expand Down