updateTask() {

    const vm = this;
    const time = new Date(this.task.timeAt);

    if (!vm.task.title || !vm.task.description) {

      this.showWarningToasty(`Введите ${vm.title ? 'описание' : 'заголовок' } задачи`);

      return;
    }

    if (notifyDay(new Date(vm.task.dateAt), this.stringifyTime(time), this.notifyOf) < new Date()) {

      this.showWarningToasty(`Дата, которую Вы задали, не может быть применена`);

      return;
    }

    const task = {
      id: uuid(),
      title: vm.task.title,
      description: vm.task.description,
      timeAt: this.stringifyTime(time),
      dateAt: new Date(vm.task.dateAt).toString(),

      dateAtServer: vm.task.dateAt && `${vm.task.dateAt.getDate()}/${vm.task.dateAt.getMonth()}/${vm.task.dateAt.getFullYear()}`
    };

    console.warn('updateTask', task);

    this.deleteTask(this.task.id);
    this.saveTask(task);

    this.$state.go(`home.taskForCurrentDate`, { date: getLocalDate(vm.dateAt) });
  }
  removeTask() {

    this.deleteTask(this.task.id);

    this.$state.go(`home.taskForCurrentDate`, { date: getLocalDate(this.task.dateAt) })
  }