1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-06 06:15:22 +02:00

Merge branch 'chiu0602-master' into develop

This commit is contained in:
Anthony Lapenna 2016-06-08 18:34:33 +12:00
commit b1e4800605

View file

@ -31,7 +31,7 @@ angular.module('uifordocker', [
$urlRouterProvider.otherwise('/'); $urlRouterProvider.otherwise('/');
$stateProvider $stateProvider
.state('index', { .state('index', {
url: '/', url: '/',
templateUrl: 'app/components/dashboard/dashboard.html', templateUrl: 'app/components/dashboard/dashboard.html',
@ -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(),