syncthing/src/app/lists/status-list/status-list.component.ts

26 lines
571 B
TypeScript
Raw Normal View History

import { Component, OnInit } from '@angular/core';
2020-03-30 23:02:46 +02:00
import { Type } from '../../type';
import { cardElevation } from '../../style';
2020-03-12 02:22:43 +01:00
2020-03-11 03:51:50 +01:00
@Component({
selector: 'app-status-list',
templateUrl: './status-list.component.html',
styleUrls: ['./status-list.component.scss']
})
export class StatusListComponent implements OnInit {
2020-03-30 23:02:46 +02:00
currentListType: Type = Type.Folder;
listType = Type; // used in html
elevation: string = cardElevation;
2020-03-30 20:44:52 +02:00
title: string = 'Status';
2020-03-11 03:51:50 +01:00
constructor() { }
2020-03-11 03:51:50 +01:00
ngOnInit(): void {
2020-03-11 03:51:50 +01:00
}
2020-03-30 23:02:46 +02:00
onToggle(t: Type) {
2020-03-19 23:05:04 +01:00
this.currentListType = t;
2020-03-12 02:22:43 +01:00
}
2020-03-11 03:51:50 +01:00
}