mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
copy tweaks
This commit is contained in:
parent
d7e74f07f0
commit
009d3dde3d
2 changed files with 2 additions and 21 deletions
|
@ -36,8 +36,8 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
||||||
this.get('templateService').getSavedTemplates().then(function(saved) {
|
this.get('templateService').getSavedTemplates().then(function(saved) {
|
||||||
let emptyTemplate = {
|
let emptyTemplate = {
|
||||||
id: "0",
|
id: "0",
|
||||||
title: "Empty document",
|
title: "Empty",
|
||||||
description: "An empty canvas for your masterpiece",
|
description: "An empty canvas for your words",
|
||||||
img: "template-blank",
|
img: "template-blank",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -32,22 +32,3 @@ export default Ember.Component.extend(NotifierMixin, {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
setTemplate(chosen) {
|
|
||||||
if (is.undefined(chosen)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.set('selectedTemplate', chosen);
|
|
||||||
this.set('canEditTemplate', chosen.id !== "0" ? "Edit" : "");
|
|
||||||
|
|
||||||
let templates = this.get('savedTemplates');
|
|
||||||
|
|
||||||
templates.forEach(template => {
|
|
||||||
Ember.set(template, 'selected', template.id === chosen.id);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue