1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 00:09:40 +02:00
This commit is contained in:
Anthony Lapenna 2016-06-08 18:34:26 +12:00
parent 791e069a4c
commit 7f5be16db8

View file

@ -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: $('<div>').text(response.data).html(),