fix: rollback
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
0c476725ae
commit
34df9cf254
|
@ -52,9 +52,9 @@ export default boot(({ app }) => {
|
||||||
if (env && env !== 'development') return;
|
if (env && env !== 'development') return;
|
||||||
message = 'Duplicate request';
|
message = 'Duplicate request';
|
||||||
}
|
}
|
||||||
// Convey to Alex or Juan...
|
|
||||||
const additionalData = {
|
const additionalData = {
|
||||||
frontPath: stateQuery.route.name,
|
frontPath: '',
|
||||||
backError: {
|
backError: {
|
||||||
config: error.config,
|
config: error.config,
|
||||||
data: error,
|
data: error,
|
||||||
|
@ -70,14 +70,15 @@ export default boot(({ app }) => {
|
||||||
flat: false,
|
flat: false,
|
||||||
round: true,
|
round: true,
|
||||||
handler: async () => {
|
handler: async () => {
|
||||||
|
const locale = i18n.global.t;
|
||||||
const reason = ref(
|
const reason = ref(
|
||||||
response.data.error.code == 'ACCESS_DENIED'
|
response.data.error.code == 'ACCESS_DENIED'
|
||||||
? i18n.global.t('cau.askPrivileges')
|
? locale('cau.askPrivileges')
|
||||||
: ''
|
: ''
|
||||||
);
|
);
|
||||||
openConfirmationModal(
|
openConfirmationModal(
|
||||||
i18n.global.t('cau.title'),
|
locale('cau.title'),
|
||||||
i18n.global.t('cau.subtitle'),
|
locale('cau.subtitle'),
|
||||||
async () => {
|
async () => {
|
||||||
await axios.post('OsTickets/send-to-support', {
|
await axios.post('OsTickets/send-to-support', {
|
||||||
reason: reason.value,
|
reason: reason.value,
|
||||||
|
@ -90,7 +91,7 @@ export default boot(({ app }) => {
|
||||||
props: {
|
props: {
|
||||||
modelValue: reason,
|
modelValue: reason,
|
||||||
'onUpdate:modelValue': (val) => (reason.value = val),
|
'onUpdate:modelValue': (val) => (reason.value = val),
|
||||||
label: i18n.global.t('cau.inputLabel'),
|
label: locale('cau.inputLabel'),
|
||||||
class: 'full-width',
|
class: 'full-width',
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
|
||||||
import { useState } from 'src/composables/useState';
|
import { useState } from 'src/composables/useState';
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { useStateQueryStore } from 'src/stores/useStateQueryStore';
|
import { useStateQueryStore } from 'src/stores/useStateQueryStore';
|
||||||
|
@ -18,10 +17,8 @@ const stateQuery = useStateQueryStore();
|
||||||
const state = useState();
|
const state = useState();
|
||||||
const user = state.getUser();
|
const user = state.getUser();
|
||||||
const appName = 'Lilium';
|
const appName = 'Lilium';
|
||||||
onMounted(() => {
|
|
||||||
stateStore.setMounted();
|
onMounted(() => stateStore.setMounted());
|
||||||
stateQuery.add(useRoute());
|
|
||||||
});
|
|
||||||
|
|
||||||
const pinnedModulesRef = ref();
|
const pinnedModulesRef = ref();
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue