mirror of https://github.com/rancher/ui.git
MC App Rollback hide additional fields & add help text to modals
rancher/rancher#25512
This commit is contained in:
parent
1d39e01581
commit
e63e5082f6
|
|
@ -1,9 +1,14 @@
|
||||||
|
<header class="header">
|
||||||
<h2>
|
<h2>
|
||||||
{{t
|
{{t
|
||||||
"modalRollbackApp.title"
|
"modalRollbackApp.title"
|
||||||
appName=model.displayName
|
appName=model.displayName
|
||||||
}}
|
}}
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="pro-tip">
|
||||||
|
{{t "modalRollbackApp.protip"}}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
{{#if loading}}
|
{{#if loading}}
|
||||||
<i class="icon icon-spinner icon-spin"/> {{t "generic.loading"}}
|
<i class="icon icon-spinner icon-spin"/> {{t "generic.loading"}}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import jsondiffpatch from 'jsondiffpatch';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { notEmpty } from '@ember/object/computed';
|
import { notEmpty } from '@ember/object/computed';
|
||||||
|
|
||||||
const HIDDEN_FIELDS = ['digest'];
|
const HIDDEN_FIELDS = ['digest', 'created', 'createdTS', 'links', 'uuid', 'id', 'name'];
|
||||||
|
|
||||||
function sanitizeToRemoveHiddenKeys(config) {
|
function sanitizeToRemoveHiddenKeys(config) {
|
||||||
HIDDEN_FIELDS.forEach((key) => {
|
HIDDEN_FIELDS.forEach((key) => {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
|
<header class="header">
|
||||||
<h2>
|
<h2>
|
||||||
{{t
|
{{t
|
||||||
"modalRollbackApp.title"
|
"modalRollbackApp.title"
|
||||||
appName=model.displayName
|
appName=model.displayName
|
||||||
}}
|
}}
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="pro-tip">
|
||||||
|
{{t "modalRollbackApp.protip"}}
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
{{#if loading}}
|
{{#if loading}}
|
||||||
<i class="icon icon-spinner icon-spin"/> {{t "generic.loading"}}
|
<i class="icon icon-spinner icon-spin"/> {{t "generic.loading"}}
|
||||||
|
|
|
||||||
|
|
@ -7774,6 +7774,7 @@ modalRollbackService:
|
||||||
|
|
||||||
modalRollbackApp:
|
modalRollbackApp:
|
||||||
title: 'Rollback "{appName}"'
|
title: 'Rollback "{appName}"'
|
||||||
|
protip: 'The "Rollback" action will create a new revision with the same configuration as the selected revision.'
|
||||||
action: Rollback
|
action: Rollback
|
||||||
current:
|
current:
|
||||||
label: Current Revision
|
label: Current Revision
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue