mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Refactor use of translation key in vue template slightly
This commit is contained in:
parent
9732b80298
commit
c1c632dcb0
@ -17,7 +17,7 @@
|
||||
<slot name="body"></slot>
|
||||
</div>
|
||||
<div class="modal-footer" v-if="!hideFooter">
|
||||
<button class="btn btn-cancel" @click="$emit('close')">{{ trans(modalActionClose) }}</button>
|
||||
<button class="btn btn-cancel" @click="$emit('close')">{{ trans(MODAL_ACTION_CLOSE) }}</button>
|
||||
<slot name="footer"></slot>
|
||||
</div>
|
||||
</div>
|
||||
@ -56,10 +56,8 @@ export default defineComponent({
|
||||
},
|
||||
emits: ['close'],
|
||||
setup() {
|
||||
const modalActionClose = MODAL_ACTION_CLOSE;
|
||||
|
||||
return {
|
||||
modalActionClose,
|
||||
MODAL_ACTION_CLOSE,
|
||||
trans
|
||||
};
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user