move "looks like not installed" in client view, and open & install stage

This commit is contained in:
Bruno Windels
2020-12-01 15:29:12 +01:00
parent c1bc2546fd
commit 64657c196a
9 changed files with 141 additions and 53 deletions
+2 -2
View File
@@ -15,11 +15,11 @@ limitations under the License.
*/
import {TemplateView} from "../utils/TemplateView.js";
import {ClientView} from "./ClientView.js";
import {ListedClientView} from "./ClientView.js";
export class ClientListView extends TemplateView {
render(t, vm) {
const clients = vm.clients.map(clientViewModel => t.view(new ClientView(clientViewModel)));
const clients = vm.clients.map(clientViewModel => t.view(new ListedClientView(clientViewModel)));
return t.div({className: "ClientListView"}, [
t.h3("You need an app to continue"),
t.div({className: "ClientListView"}, clients)