|
|
@ -92,7 +92,8 @@ angular.module('uifordocker', [
|
|
|
|
$httpProvider.interceptors.push(function() {
|
|
|
|
$httpProvider.interceptors.push(function() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'response': function(response) {
|
|
|
|
'response': function(response) {
|
|
|
|
if (typeof(response.data) === 'string' && response.data.startsWith('Conflict.')) {
|
|
|
|
if (typeof(response.data) === 'string' &&
|
|
|
|
|
|
|
|
(response.data.startsWith('Conflict.') || response.data.startsWith('conflict:'))) {
|
|
|
|
$.gritter.add({
|
|
|
|
$.gritter.add({
|
|
|
|
title: 'Error',
|
|
|
|
title: 'Error',
|
|
|
|
text: $('<div>').text(response.data).html(),
|
|
|
|
text: $('<div>').text(response.data).html(),
|
|
|
|