Skip to content

Commit 5006446

Browse files
Merge branch 'master' into nmetulev/mgt-login-popup-fix
2 parents fc6c9fc + e25c6d7 commit 5006446

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

src/components/mgt-tasks/mgt-tasks.ts

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@ export class MgtTasks extends MgtTemplatedComponent {
188188
@property({ attribute: 'hide-header', type: Boolean })
189189
public hideHeader: boolean = false;
190190

191+
/**
192+
* sets whether the options are rendered
193+
*
194+
* @type {boolean}
195+
* @memberof MgtTasks
196+
*/
197+
@property({ attribute: 'hide-options', type: Boolean })
198+
public hideOptions: boolean;
199+
191200
/**
192201
* allows developer to define specific group id
193202
*/
@@ -1012,17 +1021,18 @@ export class MgtTasks extends MgtTemplatedComponent {
10121021
`;
10131022
}
10141023

1015-
const taskOptions = this.readOnly
1016-
? null
1017-
: html`
1018-
<div class="TaskOptions">
1019-
<mgt-dot-options
1020-
.options="${{
1021-
'Delete Task': () => this.removeTask(task)
1022-
}}"
1023-
></mgt-dot-options>
1024-
</div>
1025-
`;
1024+
const taskOptions =
1025+
this.readOnly || this.hideOptions
1026+
? null
1027+
: html`
1028+
<div class="TaskOptions">
1029+
<mgt-dot-options
1030+
.options="${{
1031+
'Delete Task': () => this.removeTask(task)
1032+
}}"
1033+
></mgt-dot-options>
1034+
</div>
1035+
`;
10261036

10271037
return html`
10281038
<div

0 commit comments

Comments
 (0)