forked from hazza/dspace-angular
87968: Turn off preserveWhitespaces by default
And set to true explicitly for MyDSpace action components to preserve look (see https://github.com/DSpace/dspace-angular/issues/903#issuecomment-713013310)
This commit is contained in:
@@ -25,7 +25,8 @@ import { MyDSpaceReloadableActionsComponent } from '../../mydspace-reloadable-ac
|
|||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-claimed-task-action-abstract',
|
selector: 'ds-claimed-task-action-abstract',
|
||||||
template: ''
|
template: '',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
export abstract class ClaimedTaskActionsAbstractComponent extends MyDSpaceReloadableActionsComponent<ClaimedTask, ClaimedTaskDataService> implements OnDestroy {
|
export abstract class ClaimedTaskActionsAbstractComponent extends MyDSpaceReloadableActionsComponent<ClaimedTask, ClaimedTaskDataService> implements OnDestroy {
|
||||||
|
|
||||||
|
@@ -18,6 +18,7 @@ export const WORKFLOW_TASK_OPTION_APPROVE = 'submit_approve';
|
|||||||
selector: 'ds-claimed-task-actions-approve',
|
selector: 'ds-claimed-task-actions-approve',
|
||||||
styleUrls: ['./claimed-task-actions-approve.component.scss'],
|
styleUrls: ['./claimed-task-actions-approve.component.scss'],
|
||||||
templateUrl: './claimed-task-actions-approve.component.html',
|
templateUrl: './claimed-task-actions-approve.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* Component for displaying and processing the approve action on a workflow task item
|
* Component for displaying and processing the approve action on a workflow task item
|
||||||
|
@@ -26,6 +26,7 @@ import { getWorkflowItemViewRoute } from '../../../workflowitems-edit-page/workf
|
|||||||
selector: 'ds-claimed-task-actions',
|
selector: 'ds-claimed-task-actions',
|
||||||
styleUrls: ['./claimed-task-actions.component.scss'],
|
styleUrls: ['./claimed-task-actions.component.scss'],
|
||||||
templateUrl: './claimed-task-actions.component.html',
|
templateUrl: './claimed-task-actions.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
export class ClaimedTaskActionsComponent extends MyDSpaceActionsComponent<ClaimedTask, ClaimedTaskDataService> implements OnInit {
|
export class ClaimedTaskActionsComponent extends MyDSpaceActionsComponent<ClaimedTask, ClaimedTaskDataService> implements OnInit {
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@ export const WORKFLOW_TASK_OPTION_EDIT_METADATA = 'submit_edit_metadata';
|
|||||||
selector: 'ds-claimed-task-actions-edit-metadata',
|
selector: 'ds-claimed-task-actions-edit-metadata',
|
||||||
styleUrls: ['./claimed-task-actions-edit-metadata.component.scss'],
|
styleUrls: ['./claimed-task-actions-edit-metadata.component.scss'],
|
||||||
templateUrl: './claimed-task-actions-edit-metadata.component.html',
|
templateUrl: './claimed-task-actions-edit-metadata.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* Component for displaying the edit metadata action on a workflow task item
|
* Component for displaying the edit metadata action on a workflow task item
|
||||||
|
@@ -21,6 +21,7 @@ export const WORKFLOW_TASK_OPTION_REJECT = 'submit_reject';
|
|||||||
selector: 'ds-claimed-task-actions-reject',
|
selector: 'ds-claimed-task-actions-reject',
|
||||||
styleUrls: ['./claimed-task-actions-reject.component.scss'],
|
styleUrls: ['./claimed-task-actions-reject.component.scss'],
|
||||||
templateUrl: './claimed-task-actions-reject.component.html',
|
templateUrl: './claimed-task-actions-reject.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* Component for displaying and processing the reject action on a workflow task item
|
* Component for displaying and processing the reject action on a workflow task item
|
||||||
|
@@ -19,6 +19,7 @@ export const WORKFLOW_TASK_OPTION_RETURN_TO_POOL = 'return_to_pool';
|
|||||||
selector: 'ds-claimed-task-actions-return-to-pool',
|
selector: 'ds-claimed-task-actions-return-to-pool',
|
||||||
styleUrls: ['./claimed-task-actions-return-to-pool.component.scss'],
|
styleUrls: ['./claimed-task-actions-return-to-pool.component.scss'],
|
||||||
templateUrl: './claimed-task-actions-return-to-pool.component.html',
|
templateUrl: './claimed-task-actions-return-to-pool.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
/**
|
/**
|
||||||
* Component for displaying and processing the return to pool action on a workflow task item
|
* Component for displaying and processing the return to pool action on a workflow task item
|
||||||
|
@@ -16,6 +16,7 @@ import { getItemPageRoute } from '../../../item-page/item-page-routing-paths';
|
|||||||
selector: 'ds-item-actions',
|
selector: 'ds-item-actions',
|
||||||
styleUrls: ['./item-actions.component.scss'],
|
styleUrls: ['./item-actions.component.scss'],
|
||||||
templateUrl: './item-actions.component.html',
|
templateUrl: './item-actions.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
export class ItemActionsComponent extends MyDSpaceActionsComponent<Item, ItemDataService> implements OnInit {
|
export class ItemActionsComponent extends MyDSpaceActionsComponent<Item, ItemDataService> implements OnInit {
|
||||||
|
@@ -27,6 +27,7 @@ import { ProcessTaskResponse } from '../../../core/tasks/models/process-task-res
|
|||||||
selector: 'ds-pool-task-actions',
|
selector: 'ds-pool-task-actions',
|
||||||
styleUrls: ['./pool-task-actions.component.scss'],
|
styleUrls: ['./pool-task-actions.component.scss'],
|
||||||
templateUrl: './pool-task-actions.component.html',
|
templateUrl: './pool-task-actions.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
export class PoolTaskActionsComponent extends MyDSpaceReloadableActionsComponent<PoolTask, PoolTaskDataService> implements OnDestroy {
|
export class PoolTaskActionsComponent extends MyDSpaceReloadableActionsComponent<PoolTask, PoolTaskDataService> implements OnDestroy {
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@ import { SearchService } from '../../../core/shared/search/search.service';
|
|||||||
selector: 'ds-workflowitem-actions',
|
selector: 'ds-workflowitem-actions',
|
||||||
styleUrls: ['./workflowitem-actions.component.scss'],
|
styleUrls: ['./workflowitem-actions.component.scss'],
|
||||||
templateUrl: './workflowitem-actions.component.html',
|
templateUrl: './workflowitem-actions.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
export class WorkflowitemActionsComponent extends MyDSpaceActionsComponent<WorkflowItem, WorkflowItemDataService> {
|
export class WorkflowitemActionsComponent extends MyDSpaceActionsComponent<WorkflowItem, WorkflowItemDataService> {
|
||||||
|
|
||||||
|
@@ -22,6 +22,7 @@ import { NoContent } from '../../../core/shared/NoContent.model';
|
|||||||
selector: 'ds-workspaceitem-actions',
|
selector: 'ds-workspaceitem-actions',
|
||||||
styleUrls: ['./workspaceitem-actions.component.scss'],
|
styleUrls: ['./workspaceitem-actions.component.scss'],
|
||||||
templateUrl: './workspaceitem-actions.component.html',
|
templateUrl: './workspaceitem-actions.component.html',
|
||||||
|
preserveWhitespaces: true,
|
||||||
})
|
})
|
||||||
export class WorkspaceitemActionsComponent extends MyDSpaceActionsComponent<WorkspaceItem, WorkspaceitemDataService> {
|
export class WorkspaceitemActionsComponent extends MyDSpaceActionsComponent<WorkspaceItem, WorkspaceitemDataService> {
|
||||||
|
|
||||||
|
@@ -12,7 +12,6 @@ import { RemoteData } from '../core/data/remote-data';
|
|||||||
selector: 'ds-thumbnail',
|
selector: 'ds-thumbnail',
|
||||||
styleUrls: ['./thumbnail.component.scss'],
|
styleUrls: ['./thumbnail.component.scss'],
|
||||||
templateUrl: './thumbnail.component.html',
|
templateUrl: './thumbnail.component.html',
|
||||||
preserveWhitespaces: false,
|
|
||||||
})
|
})
|
||||||
export class ThumbnailComponent implements OnChanges {
|
export class ThumbnailComponent implements OnChanges {
|
||||||
/**
|
/**
|
||||||
|
@@ -15,9 +15,7 @@ import { AppConfig } from './config/app-config.interface';
|
|||||||
import { extendEnvironmentWithAppConfig } from './config/config.util';
|
import { extendEnvironmentWithAppConfig } from './config/config.util';
|
||||||
|
|
||||||
const bootstrap = () => platformBrowserDynamic()
|
const bootstrap = () => platformBrowserDynamic()
|
||||||
.bootstrapModule(BrowserAppModule, {
|
.bootstrapModule(BrowserAppModule, {});
|
||||||
preserveWhitespaces: true
|
|
||||||
});
|
|
||||||
|
|
||||||
const main = () => {
|
const main = () => {
|
||||||
// Load fonts async
|
// Load fonts async
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
"src/**/mocks/*"
|
"src/**/mocks/*"
|
||||||
],
|
],
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
"entryModule": "./src/modules/app/browser-app.module#BrowserAppModule",
|
"entryModule": "./src/modules/app/browser-app.module#BrowserAppModule"
|
||||||
"preserveWhitespaces": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user