diff --git a/js/apps/system/aardvark/frontend/js/templates/foxxActiveView.ejs b/js/apps/system/aardvark/frontend/js/templates/foxxActiveView.ejs
index eee7e4961f..c6f903297a 100644
--- a/js/apps/system/aardvark/frontend/js/templates/foxxActiveView.ejs
+++ b/js/apps/system/aardvark/frontend/js/templates/foxxActiveView.ejs
@@ -1,34 +1,6 @@
diff --git a/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js b/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js
index 218d2905de..244935cd2c 100644
--- a/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js
+++ b/js/apps/system/aardvark/frontend/js/views/foxxActiveView.js
@@ -19,9 +19,7 @@
template: templateEngine.createTemplate("foxxActiveView.ejs"),
events: {
- 'click .icon_arangodb_info' : 'showDocu',
- 'click .icon_arangodb_settings2' : 'editFoxxDialog',
- 'click .icon' : 'openAppInNewTab'
+ 'click' : 'openAppDetailView'
},
initialize: function(){
@@ -53,112 +51,6 @@
_.bindAll(this, 'render');
},
- toggle: function(type, shouldShow) {
- if (this.model.get("development")) {
- if ("devel" === type) {
- this._show = shouldShow;
- }
- } else {
- if ("active" === type && true === this.model.get("active")) {
- this._show = shouldShow;
- }
- if ("inactive" === type && false === this.model.get("active")) {
- this._show = shouldShow;
- }
- }
- if (this._show) {
- $(this.el).show();
- } else {
- $(this.el).hide();
- }
- },
-
- fillValues: function() {
- var list = [],
- appInfos = this.model.get("app").split(":"),
- name = appInfos[1],
-// versOptions = [],
- isSystem,
- active,
- modView = window.modalView;
- var mount = this.model.get("mount");
- var editable = !(
- this.model.get("isSystem") &&
- mount.charAt(0) === '/' &&
- mount.charAt(1) === '_'
- );
- if (this.model.get("isSystem")) {
- isSystem = "Yes";
- } else {
- isSystem = "No";
- }
- if (this.model.get("active")) {
- active = "Active";
- } else {
- active = "Inactive";
- }
- list.push(modView.createReadOnlyEntry(
- "id_name", "Name", name
- ));
- var link = window.location.origin +
- "/_db/" + encodeURIComponent(arangoHelper.currentDatabase()) +
- "/_admin/aardvark/swagger/" + encodeURIComponent(encodeURIComponent(this.model.get("mount")));
- list.push(modView.createReadOnlyEntry(
- "id_documentationJsonUrl",
- "API docs",
- "JSON-file for Swagger"
- ));
- if (editable) {
- list.push(modView.createTextEntry(
- "change-mount-point", "Mount", this.model.get("mount"),
- "The path where the app can be reached.",
- "mount-path",
- true,
- [
- {
- rule: Joi.string().required(),
- msg: "No mount-path given."
- }
- ]
- ));
- } else {
- list.push(modView.createReadOnlyEntry(
- "change-mount-point", "Mount", this.model.get("mount")
- ));
- }
- /*
- * For the future, update apps to available newer versions
- * versOptions.push(modView.createOptionEntry(appInfos[2]));
- * list.push(modView.createSelectEntry()
- */
- list.push(modView.createReadOnlyEntry(
- "id_version", "Version", appInfos[2]
- ));
- list.push(modView.createReadOnlyEntry(
- "id_system", "System", isSystem
- ));
- list.push(modView.createReadOnlyEntry(
- "id_status", "Status", active
- ));
- return list;
- },
-
- editFoxxDialog: function(event) {
- event.stopPropagation();
- var mount = this.model.get("mount");
- var isSystem = (
- this.model.get("isSystem") &&
- mount.charAt(0) === '/' &&
- mount.charAt(1) === '_'
- );
- if (this.model.get("development")) {
- this.buttonConfig[0].disabled = true;
- } else if (!isSystem) {
- delete this.buttonConfig[0].disabled;
- }
- this.showMod(this.buttonConfig, this.fillValues());
- },
-
changeFoxx: function() {
var mount = $("#change-mount-point").val();
var failed = false;
@@ -191,28 +83,12 @@
}
},
- openAppInNewTab: function() {
- var url = window.location.origin + "/_db/" +
- encodeURIComponent(arangoHelper.currentDatabase()) +
- this.model.get("mount");
- var windowRef = window.open(url, this.model.get("title"));
- windowRef.focus();
- },
-
- uninstall: function () {
- this.model.destroy({ async: false });
- window.modalView.hide();
- this.appsView.reload();
- },
-
- showDocu: function(event) {
- event.stopPropagation();
- window.App.navigate(
- "application/documentation/" + encodeURIComponent(this.model.get("_key")),
- {
- trigger: true
- }
- );
+ openAppDetailView: function() {
+ // var url = window.location.origin + "/_db/" +
+ // encodeURIComponent(arangoHelper.currentDatabase()) +
+ // this.model.get("mount");
+ // var windowRef = window.open(url, this.model.get("title"));
+ alert('Michael will insert something here for ' + this.model.get('mount') + '. Stay tuned.');
},
render: function(){