From 7f5be16db817d0febc01bd5d6c58b5df2e37fb81 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 8 Jun 2016 18:34:26 +1200 Subject: [PATCH] merged --- app/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/app.js b/app/app.js index d89180069..199249d04 100644 --- a/app/app.js +++ b/app/app.js @@ -31,7 +31,7 @@ angular.module('uifordocker', [ $urlRouterProvider.otherwise('/'); - $stateProvider + $stateProvider .state('index', { url: '/', templateUrl: 'app/components/dashboard/dashboard.html', @@ -92,7 +92,8 @@ angular.module('uifordocker', [ $httpProvider.interceptors.push(function() { return { '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({ title: 'Error', text: $('
').text(response.data).html(),