Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Commit

Permalink
Uninstalling app when app is deleted from grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hansen committed Oct 6, 2017
1 parent 5647b9a commit 9d365ac
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion helpers/databind-grid.hl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ for-each:x:/@list-files/*?name
h3
innerValue:Confirm deletion of app
p
innerValue:Are you sure you want to delete this app? This action is permanent.
innerValue:Are you sure you want to delete this app? This action is permanent, and your application will also be uninstalled.
div
class:right
widgets
Expand Down Expand Up @@ -101,6 +101,15 @@ for-each:x:/@list-files/*?name
delete-file:x:/@_filename?value
delete-widget:camphora-confirm-deletion

/*
* Making sure we also uninstall app.
*/
split:x:/@_filename?value
=:/
=:.
desktop.uninstall-app:/modules/{0}/
:x:/@split/0/-2?name

/*
* Re-databinding grid.
*/
Expand Down

0 comments on commit 9d365ac

Please sign in to comment.