mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
Messages: unmark critical (#16146)
* Unmark as critical
* Revert "Unmark as critical"
This reverts commit 3fa79fc498.
* rename unmarkAsCriticalApp -> unmarkAsCritical
This commit is contained in:
@@ -176,8 +176,8 @@
|
|||||||
"totalApplications": {
|
"totalApplications": {
|
||||||
"message": "Total applications"
|
"message": "Total applications"
|
||||||
},
|
},
|
||||||
"unmarkAsCriticalApp": {
|
"unmarkAsCritical": {
|
||||||
"message": "Unmark as critical app"
|
"message": "Unmark as critical"
|
||||||
},
|
},
|
||||||
"criticalApplicationSuccessfullyUnmarked": {
|
"criticalApplicationSuccessfullyUnmarked": {
|
||||||
"message": "Critical application successfully unmarked"
|
"message": "Critical application successfully unmarked"
|
||||||
|
|||||||
@@ -88,8 +88,8 @@
|
|||||||
></button>
|
></button>
|
||||||
|
|
||||||
<bit-menu #rowMenu>
|
<bit-menu #rowMenu>
|
||||||
<button type="button" bitMenuItem (click)="unmarkAsCriticalApp(row.applicationName)">
|
<button type="button" bitMenuItem (click)="unmarkAsCritical(row.applicationName)">
|
||||||
{{ "unmarkAsCriticalApp" | i18n }}
|
{{ "unmarkAsCritical" | i18n }}
|
||||||
</button>
|
</button>
|
||||||
</bit-menu>
|
</bit-menu>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -19,6 +19,6 @@ export class AppTableRowScrollableComponent {
|
|||||||
@Input() selectedUrls: Set<string> = new Set<string>();
|
@Input() selectedUrls: Set<string> = new Set<string>();
|
||||||
@Input() isDrawerIsOpenForThisRecord!: (applicationName: string) => boolean;
|
@Input() isDrawerIsOpenForThisRecord!: (applicationName: string) => boolean;
|
||||||
@Input() showAppAtRiskMembers!: (applicationName: string) => void;
|
@Input() showAppAtRiskMembers!: (applicationName: string) => void;
|
||||||
@Input() unmarkAsCriticalApp!: (applicationName: string) => void;
|
@Input() unmarkAsCritical!: (applicationName: string) => void;
|
||||||
@Input() checkboxChange!: (applicationName: string, $event: Event) => void;
|
@Input() checkboxChange!: (applicationName: string, $event: Event) => void;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -83,6 +83,6 @@
|
|||||||
[showRowMenuForCriticalApps]="true"
|
[showRowMenuForCriticalApps]="true"
|
||||||
[isDrawerIsOpenForThisRecord]="isDrawerOpenForTableRow"
|
[isDrawerIsOpenForThisRecord]="isDrawerOpenForTableRow"
|
||||||
[showAppAtRiskMembers]="showAppAtRiskMembers"
|
[showAppAtRiskMembers]="showAppAtRiskMembers"
|
||||||
[unmarkAsCriticalApp]="unmarkAsCriticalApp"
|
[unmarkAsCritical]="unmarkAsCritical"
|
||||||
></app-table-row-scrollable>
|
></app-table-row-scrollable>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export class CriticalApplicationsComponent implements OnInit {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
unmarkAsCriticalApp = async (hostname: string) => {
|
unmarkAsCritical = async (hostname: string) => {
|
||||||
try {
|
try {
|
||||||
await this.criticalAppsService.dropCriticalApp(
|
await this.criticalAppsService.dropCriticalApp(
|
||||||
this.organizationId as OrganizationId,
|
this.organizationId as OrganizationId,
|
||||||
|
|||||||
Reference in New Issue
Block a user