diff options
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/js/versionstabview.js | 9 | ||||
-rw-r--r-- | apps/files_versions/tests/js/versionstabviewSpec.js | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_versions/js/versionstabview.js b/apps/files_versions/js/versionstabview.js index e5ca115ecfa..aa20d8fda7a 100644 --- a/apps/files_versions/js/versionstabview.js +++ b/apps/files_versions/js/versionstabview.js @@ -133,11 +133,14 @@ fileInfoModel.trigger('busy', fileInfoModel, false); self.$el.find('.versions').removeClass('hidden'); self._toggleLoading(false); - OC.Notification.showTemporary( - t('files_version', 'Failed to revert {file} to revision {timestamp}.', { + OC.Notification.show(t('files_version', 'Failed to revert {file} to revision {timestamp}.', + { file: versionModel.getFullPath(), timestamp: OC.Util.formatDate(versionModel.get('timestamp') * 1000) - }) + }), + { + type: 'error' + } ); } }); diff --git a/apps/files_versions/tests/js/versionstabviewSpec.js b/apps/files_versions/tests/js/versionstabviewSpec.js index cadd4eb363e..94ad72d0f77 100644 --- a/apps/files_versions/tests/js/versionstabviewSpec.js +++ b/apps/files_versions/tests/js/versionstabviewSpec.js @@ -224,7 +224,7 @@ describe('OCA.Versions.VersionsTabView', function() { expect(changes.etag).toBeDefined(); }); it('shows notification on revert error', function() { - var notificationStub = sinon.stub(OC.Notification, 'showTemporary'); + var notificationStub = sinon.stub(OC.Notification, 'show'); tabView.$el.find('.revertVersion').eq(1).click(); |