Closed elek closed 1 year ago
Some frontend pages already have a lightweight error handling. Like in Push.vue:
Push.vue
var push = function(name, tag) { error.value = "" message.value = "" Api.push(name, tag).then(function () { message.value = "Container has been pushed successfully" }, function (e) { error.value = e.response.data.error }) }
And the render:
<p class="alert alert-danger" role="alert" v-if="error">{{ error }}</p> <p class="alert alert-success" role="alert" v-if="message" v-html="message"></p>
Would be nice to make it more generic: in case of any HTTP request the failure should be written out to warn the user, that sg. is wrong.
interested please assign @elek
done
Some frontend pages already have a lightweight error handling. Like in
Push.vue
:And the render:
Would be nice to make it more generic: in case of any HTTP request the failure should be written out to warn the user, that sg. is wrong.