Skip to content

Commit 355a112

Browse files
committed
fix swimlane view id
there were different ids used in desk settings and in monitoring SDESK-7765
1 parent 2c4411b commit 355a112

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/apps/monitoring/directives/MonitoringView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function MonitoringView(
227227
scope.numberOfColumns = 1;
228228

229229
scope.switchView = function(value: string, options?: {programmatic?: boolean}) {
230-
const isSwimlane = value === 'swimlane2';
230+
const isSwimlane = value === 'swimlane';
231231

232232
const programmatic = options?.programmatic === true;
233233

scripts/apps/monitoring/directives/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function getMonitoringViewOptions(
9696

9797
if (options.swimlaneViewEnabled) {
9898
availableViews.push({
99-
id: 'swimlane2',
99+
id: 'swimlane',
100100
label: gettext('Swimlane View'),
101101
icon: 'kanban-view',
102102
});

scripts/apps/search/components/Item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export class Item extends React.Component<IProps, IState> {
331331

332332
const getTemplate = () => {
333333
switch (this.props.view) {
334-
case 'swimlane2':
334+
case 'swimlane':
335335
return (
336336
<ItemSwimlane
337337
item={item}
@@ -396,7 +396,7 @@ export class Item extends React.Component<IProps, IState> {
396396

397397
const getNested = () => {
398398
switch (this.props.view) {
399-
case 'swimlane2':
399+
case 'swimlane':
400400
case 'mgrid':
401401
case 'photogrid':
402402
return null;

scripts/apps/search/components/ItemList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface IProps {
2222
itemsById: any;
2323
relatedEntities: IRelatedEntities;
2424
narrow: boolean;
25-
view: 'compact' | 'mgrid' | 'photogrid' | 'compact-configurable' | 'swimlane2';
25+
view: 'compact' | 'mgrid' | 'photogrid' | 'compact-configurable' | 'swimlane';
2626
selected: string;
2727
swimlane: any;
2828
profilesById: any;
@@ -494,7 +494,7 @@ export class ItemList extends React.Component<IProps, IState> {
494494
let classes: {[key in IProps['view']]: string} = {
495495
compact: 'compact-view list-view',
496496
'compact-configurable': 'compact-view list-view',
497-
swimlane2: 'list-view',
497+
swimlane: 'list-view',
498498
mgrid: 'mgrid-view list-view',
499499
photogrid: 'sd-grid-list sd-grid-list--no-margin',
500500
};

0 commit comments

Comments
 (0)