Skip to content

Commit 231a1c3

Browse files
author
Dnyaneshwari
committed
mgr/dashboard: Removing duplicate cephfs constant file & importing correct default_subvolumegroup.
Fixes: https://tracker.ceph.com/issues/68623 Signed-off-by: Dnyaneshwari Talwekar <[email protected]>
1 parent 8978b85 commit 231a1c3

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-snapshotschedule-form/cephfs-snapshotschedule-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { CephfsSnapshotScheduleService } from '~/app/shared/api/cephfs-snapshot-
1919
import { CephfsSubvolumeService } from '~/app/shared/api/cephfs-subvolume.service';
2020
import { DirectoryStoreService } from '~/app/shared/api/directory-store.service';
2121
import { ActionLabelsI18n, URLVerbs } from '~/app/shared/constants/app.constants';
22+
import { DEFAULT_SUBVOLUME_GROUP } from '~/app/shared/constants/cephfs.constant';
2223
import { Icons } from '~/app/shared/enum/icons.enum';
2324
import { RepeatFrequency } from '~/app/shared/enum/repeat-frequency.enum';
2425
import { RetentionFrequency } from '~/app/shared/enum/retention-frequency.enum';
@@ -35,7 +36,6 @@ import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service';
3536

3637
const VALIDATON_TIMER = 300;
3738
const DEBOUNCE_TIMER = 300;
38-
const DEFAULT_SUBVOLUME_GROUP = '_nogroup';
3939

4040
@Component({
4141
selector: 'cd-cephfs-snapshotschedule-form',

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-list/cephfs-subvolume-list.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ import { CephfsMountDetailsComponent } from '../cephfs-mount-details/cephfs-moun
3434
import { HealthService } from '~/app/shared/api/health.service';
3535
import _ from 'lodash';
3636
import { ModalCdsService } from '~/app/shared/services/modal-cds.service';
37-
38-
const DEFAULT_SUBVOLUME_GROUP = '_nogroup';
37+
import { DEFAULT_SUBVOLUME_GROUP } from '~/app/shared/constants/cephfs.constant';
3938

4039
@Component({
4140
selector: 'cd-cephfs-subvolume-list',

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolume-snapshots-list/cephfs-subvolume-snapshots-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import moment from 'moment';
2626
import { Validators } from '@angular/forms';
2727
import { CdValidators } from '~/app/shared/forms/cd-validators';
2828
import { ModalCdsService } from '~/app/shared/services/modal-cds.service';
29-
import { DEFAULT_SUBVOLUME_GROUP } from '~/app/shared/constants/cephfs';
29+
import { DEFAULT_SUBVOLUME_GROUP } from '~/app/shared/constants/cephfs.constant';
3030

3131
@Component({
3232
selector: 'cd-cephfs-subvolume-snapshots-list',

src/pybind/mgr/dashboard/frontend/src/app/shared/constants/cephfs.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)