You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vs...@apache.org on 2017/04/25 08:48:49 UTC

ambari git commit: AMBARI-20794.Need to show appropriate error message while deleting the workflow history in project manager(Supreeth Sharma via Venkata Sairam)

Repository: ambari
Updated Branches:
  refs/heads/trunk c3206b859 -> 96d7bd02d


AMBARI-20794.Need to show appropriate error message while deleting the workflow history in project manager(Supreeth Sharma via Venkata Sairam)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/96d7bd02
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/96d7bd02
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/96d7bd02

Branch: refs/heads/trunk
Commit: 96d7bd02d6a6902bf8cf72cdbecf95b8605402a5
Parents: c3206b8
Author: Venkata Sairam <ve...@gmail.com>
Authored: Tue Apr 25 14:16:58 2017 +0530
Committer: Venkata Sairam <ve...@gmail.com>
Committed: Tue Apr 25 14:17:20 2017 +0530

----------------------------------------------------------------------
 .../wfmanager/src/main/resources/ui/app/components/drafts-wf.js | 2 +-
 .../views/wfmanager/src/main/resources/ui/app/styles/app.less   | 5 +++++
 .../main/resources/ui/app/templates/components/drafts-wf.hbs    | 4 +++-
 3 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/96d7bd02/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
index f6965f7..050a3b9 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
@@ -124,7 +124,7 @@ export default Ember.Component.extend({
         rec.destroyRecord().then(function () {
           self.get('recentFiles', self.get('store').peekAll("wfproject"));
           self.set("deleteInProgress", false);
-          self.set("deleteMsg", "Workflow successfully deleted.");
+          self.set("deleteMsg", "Successfully removed the item from history");
           self.get('store').unloadRecord(rec);
           self.set('filteredModels', self.get('store').peekAll("wfproject"));
           Ember.run.later(()=>{

http://git-wip-us.apache.org/repos/asf/ambari/blob/96d7bd02/contrib/views/wfmanager/src/main/resources/ui/app/styles/app.less
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/styles/app.less b/contrib/views/wfmanager/src/main/resources/ui/app/styles/app.less
index abb0637..0603b57 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/styles/app.less
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/styles/app.less
@@ -1819,3 +1819,8 @@ input:invalid {
   overflow-y: scroll;
   margin-bottom: 10px;
 }
+
+.note-info {
+  position: relative;
+  top: 10px;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/96d7bd02/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/drafts-wf.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/drafts-wf.hbs b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/drafts-wf.hbs
index 05599e5..f66b3ad 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/drafts-wf.hbs
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/drafts-wf.hbs
@@ -114,7 +114,9 @@
       </div>
       <div class="modal-body">
          {{#unless deleteMsg}}
-           <label>Do you want to delete the draft?</label>
+           <label>Do you want to remove this item from the history?</label>
+           <br/>
+           <div class="note-info">NOTE : This file will still be accessible under {{currentDraft.workflowDefinitionPath}}</div>
          {{/unless}}
          {{#if true}}
            {{spin-spinner lines=7 length=3 width=3 radius=3 top=-10 left=150}}