Skip to content

Commit

Permalink
fix: Fixed resize button being displayed in weekly view(time grid) wh…
Browse files Browse the repository at this point in the history
…en isReadOnly=true as Calendar option(fix #470)
  • Loading branch information
jungeun-cho committed Jan 23, 2020
1 parent a6f489d commit 17b1442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/view/template/week/time.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
{{/if}};">{{{comingDuration-tmpl model}}}</div>
{{/if}}
</div>
{{#unless (or croppedEnd model.isReadOnly)}}<div class="{{CSS_PREFIX}}time-resize-handle handle-x" style="margin-left: {{@root.styles.paddingLeft}};">&nbsp;</div>{{/unless}}
{{#unless (or croppedEnd @root.isReadOnly model.isReadOnly)}}<div class="{{CSS_PREFIX}}time-resize-handle handle-x" style="color: #000; margin-left: {{@root.styles.paddingLeft}};">&nbsp;</div>{{/unless}}
</div>
{{/if ~}}
{{/each}}
Expand Down
3 changes: 2 additions & 1 deletion src/js/view/week/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ Time.prototype.render = function(ymd, matrices, containerHeight) {
this._getBaseViewModel(ymd, matrices, containerHeight);
this.container.innerHTML = this.timeTmpl({
matrices: matrices,
styles: this._getStyles(this.theme)
styles: this._getStyles(this.theme),
isReadOnly: this.options.isReadOnly
});
};

Expand Down

0 comments on commit 17b1442

Please sign in to comment.