-
{{ this.themeDeleteMessage }}
+
{{ this.themeDeleteMessage }}
{{ 'ACTIONS.DELETE.MESSAGE_INFO' | translate }}
@@ -152,7 +153,7 @@
icon="pi pi-check"
styleClass="m-0"
id="th_delete_action_yes"
- (onClick)="confirmThemeDeletion()"
+ (onClick)="onConfirmThemeDeletion()"
[label]="'ACTIONS.CONFIRMATION.YES' | translate"
[pTooltip]="'ACTIONS.CONFIRMATION.YES.TOOLTIP' | translate"
tooltipPosition="top"
diff --git a/src/app/theme/theme-detail/theme-detail.component.scss b/src/app/theme/theme-detail/theme-detail.component.scss
index d9cde2e..7ab2257 100644
--- a/src/app/theme/theme-detail/theme-detail.component.scss
+++ b/src/app/theme/theme-detail/theme-detail.component.scss
@@ -1,13 +1,16 @@
-/* limit deletion dialog */
+@import 'src/app/_th-mixins.scss';
+
+@include dialog-non-full-size-modal;
+@include danger-action;
+
:host ::ng-deep {
- @media (max-width: 991px) {
- .p-dialog.p-dialog {
- max-height: unset !important;
- height: unset !important;
- }
+ .mt-01 {
+ //margin-top: 0.25rem !important;
}
-
- .danger-action-text {
- color: var(--danger-button-bg);
+ .max-w-11 {
+ max-width: 90%;
+ }
+ .animation-delay-3000 {
+ animation-delay: 3000ms !important;
}
}
diff --git a/src/app/theme/theme-detail/theme-detail.component.spec.ts b/src/app/theme/theme-detail/theme-detail.component.spec.ts
index 9b60536..5c8d683 100644
--- a/src/app/theme/theme-detail/theme-detail.component.spec.ts
+++ b/src/app/theme/theme-detail/theme-detail.component.spec.ts
@@ -1,5 +1,6 @@
import { NO_ERRORS_SCHEMA } from '@angular/core'
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'
+import { Location } from '@angular/common'
import { HttpErrorResponse } from '@angular/common/http'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { ActivatedRoute, Router } from '@angular/router'
@@ -26,6 +27,7 @@ describe('ThemeDetailComponent', () => {
}
}
const msgServiceSpy = jasmine.createSpyObj