Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Commit

Permalink
Added control to when tiddlers open upon the creation of GSD types. #37
Browse files Browse the repository at this point in the history
  • Loading branch information
roma0104 committed Feb 1, 2015
1 parent add70da commit 9ae943b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion core/modules/widgets/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ ActionWidget.prototype.execute = function() {

ActionWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes["class"]) {
if(changedAttributes["class"] || changedAttributes.edit) {
this.refreshSelf();
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion core/ui/buttons/add-action-button.tid
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Add new action
<$set name="gsd_status" value="next">
<$set name="gsd_complete" value="false">
<$set name="gsd_realm" value={{$:/currentRealm}}>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton" edit={{$:/plugins/gsd5/core/ui/config/new-action-edit}} title="Add new action" aria-label="new action" class=<<tv-config-toolbar-class>>>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton" edit={{$:/plugins/gsd5/core/ui/config/new-tiddler-show}} title="Add new action" aria-label="new action" class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/plugins/gsd5/core/images/task}}
</$list>
Expand Down
2 changes: 1 addition & 1 deletion core/ui/buttons/add-project-button.tid
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Add new project
<$set name="gsd_status" value="active">
<$set name="gsd_complete" value="false">
<$set name="gsd_realm" value={{$:/currentRealm}}>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton" title="Add new project" aria-label="new project" class=<<tv-config-toolbar-class>>>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton" edit={{$:/plugins/gsd5/core/ui/config/new-tiddler-show}} title="Add new project" aria-label="new project" class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/plugins/gsd5/core/images/project}}
</$list>
Expand Down
16 changes: 10 additions & 6 deletions core/ui/control-panel/core-cpanel.tid
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ $:/config/GSD5Lists/visibility/$(listItem)$

<div style="border-top:1px solid #eee;">

''Dashboard Lists''
''General''

<$list filter="[all[shadows+tiddlers]tag[$:/tags/GSD5Lists]!has[draft.of]]" variable="listItem">
<$checkbox tiddler=<<config-lists>> field="text" checked="show" unchecked="hide"> <<list-caption>> </$checkbox><br/>
</$list>
<$checkbox tiddler="$:/plugins/gsd5/core/ui/config/new-tiddler-show" field="text" checked="show" unchecked="no"> Show new Actions/Projects upon creation</$checkbox>

</div>

<div style="border-top:1px solid #eee;">

''Dashboard Options''
''Dashboard''

//Dashboard Lists//<br/>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/GSD5Lists]!has[draft.of]]" variable="listItem">
<$checkbox tiddler=<<config-lists>> field="text" checked="show" unchecked="hide"> <<list-caption>> </$checkbox><br/>
</$list>

<$checkbox tiddler="$:/config/GSD5DashboardGroup" field="text" checked="gsd_project" unchecked="none"> Group actions in Dashboard by project</$checkbox><br/>
//Dashboard Options//<br/>
<$checkbox tiddler="$:/config/GSD5DashboardGroup" field="text" checked="gsd_project" unchecked="none"> Group Actions in Dashboard by Project</$checkbox><br/>
<$checkbox tiddler="$:/config/GSD5DashboardCore/visibility/$:/plugins/gsd5/core/ui/lists/realm-list" field="text" checked="show" unchecked="hide"> Show Realm selector in the Dashboard </$checkbox>

</div>
8 changes: 4 additions & 4 deletions core/ui/sidebar/collect-sidebar.tid
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ caption: Collect
<$set name="gsd_status" value="next">
<$set name="gsd_complete" value="false">
<$set name="gsd_realm" value={{$:/currentRealm}}>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton">{{$:/plugins/gsd5/core/images/task}} New Action</$action>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton" edit={{$:/plugins/gsd5/core/ui/config/new-tiddler-show}}>{{$:/plugins/gsd5/core/images/task}} New Action</$action>
</$set>
</$set>
</$set>
Expand All @@ -18,7 +18,7 @@ caption: Collect
<$set name="gsd_status" value="active">
<$set name="gsd_complete" value="false">
<$set name="gsd_realm" value={{$:/currentRealm}}>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton">{{$:/plugins/gsd5/core/images/project}} New Project</$action>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ActionSkeleton" edit={{$:/plugins/gsd5/core/ui/config/new-tiddler-show}}>{{$:/plugins/gsd5/core/images/project}} New Project</$action>
</$set>
</$set>
</$set>
Expand All @@ -38,10 +38,10 @@ caption: Collect

<$set name="gsd_type" value="context">
<$set name="gsd_realm" value={{$:/currentRealm}}>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ContextSkeleton">{{$:/plugins/gsd5/core/images/context}} New Context</$action>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/ContextSkeleton" edit="no">{{$:/plugins/gsd5/core/images/context}} New Context</$action>
</$set>
</$set>

<$set name="gsd_type" value="realm">
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/RealmSkeleton">{{$:/plugins/gsd5/core/images/globe}} New Realm</$action>
<$action skeleton="$:/plugins/gsd5/core/ui/skeletons/RealmSkeleton" edit="no">{{$:/plugins/gsd5/core/images/globe}} New Realm</$action>
</$set>

0 comments on commit 9ae943b

Please sign in to comment.