Commit cb9dd02c authored by davelopez's avatar davelopez
Browse files

Reduce error dialog dramatism when partial success

Now the title "Something went wrong..." will be visible only when all items fail.
parent 511be40d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
<template>
    <b-modal
        v-model="show"
        title="Something went wrong..."
        header-text-variant="danger"
        :title="title"
        :header-text-variant="titleVariant"
        title-tag="h2"
        scrollable
        ok-only
@@ -60,6 +60,12 @@ export default {
            }
            return [];
        },
        title() {
            return this.isPartialSuccess ? "Some items could not be processed" : "Something went wrong...";
        },
        titleVariant() {
            return this.isPartialSuccess ? "warning" : "danger";
        },
        errorMessage() {
            return this.operationError?.errorMessage?.message;
        },