This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
:loading="jobActive"
|
:loading="jobActive"
|
||||||
>{{ $ay.t("StartJob") }}</v-btn
|
>{{ $ay.t("StartJob") }}</v-btn
|
||||||
>
|
>
|
||||||
|
|
||||||
</v-expansion-panel-content>
|
</v-expansion-panel-content>
|
||||||
</v-expansion-panel>
|
</v-expansion-panel>
|
||||||
</template>
|
</template>
|
||||||
@@ -37,8 +36,7 @@ export default {
|
|||||||
data: () => ({
|
data: () => ({
|
||||||
jobActive: false,
|
jobActive: false,
|
||||||
rights: window.$gz.role.defaultRightsObject(),
|
rights: window.$gz.role.defaultRightsObject(),
|
||||||
available: false,
|
available: false
|
||||||
notes: null
|
|
||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
goHelp() {
|
goHelp() {
|
||||||
@@ -101,9 +99,8 @@ export default {
|
|||||||
jobStatus = jobStatus.data;
|
jobStatus = jobStatus.data;
|
||||||
if (jobStatus == 4 || jobStatus == 0) {
|
if (jobStatus == 4 || jobStatus == 0) {
|
||||||
if (jobStatus == 4) {
|
if (jobStatus == 4) {
|
||||||
|
//emit job id and event to parent for log viewing
|
||||||
vm.notes = res.data;
|
vm.$emit("ext-show-job-log", jobId);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
throw new Error("Job failed");
|
throw new Error("Job failed");
|
||||||
}
|
}
|
||||||
@@ -117,7 +114,6 @@ export default {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
vm.jobActive = false;
|
vm.jobActive = false;
|
||||||
|
|
||||||
// vm.notes = window.$gz.errorHandler.errorToString(error);
|
|
||||||
//window.$gz.errorHandler.handleFormError(error, vm);
|
//window.$gz.errorHandler.handleFormError(error, vm);
|
||||||
window.$gz.eventBus.$emit("notify-error", vm.$ay.t("JobFailed"));
|
window.$gz.eventBus.$emit("notify-error", vm.$ay.t("JobFailed"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<ExtensionExport :dataListSelection="dataListSelection" />
|
<ExtensionExport :dataListSelection="dataListSelection" />
|
||||||
<ExtensionDelete
|
<ExtensionDelete
|
||||||
v-on:ext-close-refresh="close({ refresh: true })"
|
v-on:ext-close-refresh="close({ refresh: true })"
|
||||||
v-on:ext-show-job-log="handleError(e)"
|
v-on:ext-show-job-log="handleError($event)"
|
||||||
:dataListSelection="dataListSelection"
|
:dataListSelection="dataListSelection"
|
||||||
/>
|
/>
|
||||||
</v-expansion-panels>
|
</v-expansion-panels>
|
||||||
|
|||||||
Reference in New Issue
Block a user