Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
/ amber_web Public archive

Commit

Permalink
Hide tasks to be deleted from the list
Browse files Browse the repository at this point in the history
  • Loading branch information
tdemin committed Oct 4, 2019
1 parent 7353145 commit e5f5d34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/components/taskLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ class TaskLine extends React.Component<Props, State> {
this.props.dispatch(updateTask(task));
};
render = () => {
const { ID, Completed, Text } = this.state.task;
const { ID, Completed, ToRemove, Text } = this.state.task;
let classNames: string[] = ["taskLine", "level", "is-mobile"];
if (Completed) classNames.push("taskCompleted");
if (ToRemove) classNames.push("taskToRemove");
return (
<div className={classNames.join(" ")}>
<div className="taskText level-item level-left">
Expand Down
3 changes: 3 additions & 0 deletions src/views/styles/tasks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ div.taskList {
& > div.taskSubtree {
margin-left: 0 !important;
}
.taskToRemove {
display: none !important;
}
}

@media (max-width: 600px) {
Expand Down

0 comments on commit e5f5d34

Please sign in to comment.