mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 19:53:19 +08:00
Fixed PR commentaries [SCI-10717]
This commit is contained in:
parent
a42a8a535a
commit
c304277712
5 changed files with 60 additions and 60 deletions
|
@ -46,13 +46,13 @@
|
|||
</template>
|
||||
</GeneralDropdown>
|
||||
<div class="flex items-center gap-2.5">
|
||||
<button class="btn btn-secondary btn-sm"
|
||||
<button class="btn btn-secondary btn-sm"
|
||||
:class="{'active': activeGroup == 'ExperimentsComponent'}"
|
||||
@click="setActiveGroup('ExperimentsComponent')"
|
||||
:data-e2e="'e2e-BT-globalSearch-experiments'">
|
||||
{{ i18n.t('search.index.experiments') }}
|
||||
</button>
|
||||
<button class="btn btn-secondary btn-sm"
|
||||
<button class="btn btn-secondary btn-sm"
|
||||
:class="{'active': activeGroup == 'MyModulesComponent'}"
|
||||
@click="setActiveGroup('MyModulesComponent')"
|
||||
:data-e2e="'e2e-BT-globalSearch-tasks'">
|
||||
|
|
|
@ -48,7 +48,7 @@ export default {
|
|||
mixins: [searchMixin],
|
||||
data() {
|
||||
return {
|
||||
group: 'module_protocols',
|
||||
group: 'module_protocols'
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
@ -119,7 +119,7 @@ export default {
|
|||
close: '',
|
||||
cancel: '',
|
||||
confirm: ''
|
||||
},
|
||||
}
|
||||
},
|
||||
exportModal: {
|
||||
title: '',
|
||||
|
@ -264,7 +264,7 @@ export default {
|
|||
close: 'e2e-BT-deleteInventoryModal-close',
|
||||
cancel: 'e2e-BT-deleteInventoryModal-cancel',
|
||||
confirm: 'e2e-BT-deleteInventoryModal-delete'
|
||||
},
|
||||
};
|
||||
this.deleteModal.title = this.i18n.t('repositories.index.modal_delete.title_html', { name: repository.name });
|
||||
this.deleteModal.description = `
|
||||
<p data-e2e="e2e-TX-deleteInventoryModal-info">${this.i18n.t('repositories.index.modal_delete.message_html', { name: repository.name })}</p>
|
||||
|
|
|
@ -17,64 +17,64 @@
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'confirmationModal',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
cancelText: {
|
||||
type: String
|
||||
},
|
||||
cancelClass: {
|
||||
type: String,
|
||||
default: 'btn btn-secondary'
|
||||
},
|
||||
confirmText: {
|
||||
type: String
|
||||
},
|
||||
confirmClass: {
|
||||
type: String,
|
||||
default: 'btn btn-primary'
|
||||
},
|
||||
e2eAttributes: {
|
||||
type: Object,
|
||||
default: {}
|
||||
}
|
||||
<script>
|
||||
export default {
|
||||
name: 'confirmationModal',
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
mounted() {
|
||||
$(this.$refs.modal).on('hidden.bs.modal', () => {
|
||||
this.resolvePromise(false)
|
||||
description: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
cancelText: {
|
||||
type: String
|
||||
},
|
||||
cancelClass: {
|
||||
type: String,
|
||||
default: 'btn btn-secondary'
|
||||
},
|
||||
confirmText: {
|
||||
type: String
|
||||
},
|
||||
confirmClass: {
|
||||
type: String,
|
||||
default: 'btn btn-primary'
|
||||
},
|
||||
e2eAttributes: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
$(this.$refs.modal).on('hidden.bs.modal', () => {
|
||||
this.resolvePromise(false);
|
||||
});
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
resolvePromise: null,
|
||||
rejectPromise: null
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
show: function() {
|
||||
$(this.$refs.modal).modal('show');
|
||||
return new Promise((resolve, reject) => {
|
||||
this.resolvePromise = resolve
|
||||
this.rejectPromise = reject
|
||||
})
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
resolvePromise: null,
|
||||
rejectPromise: null
|
||||
}
|
||||
confirm() {
|
||||
this.resolvePromise(true)
|
||||
$(this.$refs.modal).modal('hide');
|
||||
},
|
||||
methods: {
|
||||
show: function() {
|
||||
$(this.$refs.modal).modal('show');
|
||||
return new Promise((resolve, reject) => {
|
||||
this.resolvePromise = resolve
|
||||
this.rejectPromise = reject
|
||||
})
|
||||
},
|
||||
confirm() {
|
||||
this.resolvePromise(true)
|
||||
$(this.$refs.modal).modal('hide');
|
||||
},
|
||||
cancel() {
|
||||
this.resolvePromise(false)
|
||||
$(this.$refs.modal).modal('hide');
|
||||
}
|
||||
cancel() {
|
||||
this.resolvePromise(false)
|
||||
$(this.$refs.modal).modal('hide');
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -84,7 +84,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
isOpen: false,
|
||||
isOpen: false
|
||||
};
|
||||
},
|
||||
directives: {
|
||||
|
|
Loading…
Reference in a new issue