Introduce buffer type

This commit is contained in:
Simon Ser 2020-06-26 10:35:38 +02:00
parent 5f30662fc0
commit 6d3621e1be
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 21 additions and 5 deletions

View file

@ -1,5 +1,5 @@
import { html, Component } from "/lib/index.js";
import { SERVER_BUFFER, Unread } from "/state.js";
import { BufferType, Unread } from "/state.js";
function BufferItem(props) {
function handleClick(event) {
@ -8,7 +8,7 @@ function BufferItem(props) {
}
var name = props.buffer.name;
if (name == SERVER_BUFFER) {
if (props.buffer.type == BufferType.SERVER) {
name = "server";
}