diff --git a/web/app/app.module.ts b/web/app/app.module.ts index e3e6f85..67f9ee8 100644 --- a/web/app/app.module.ts +++ b/web/app/app.module.ts @@ -36,6 +36,7 @@ import { ConfigScreenWidgetComponent } from "./configs/widget/config_screen/conf import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component"; import { NameService } from "./shared/services/name.service"; import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google_calendar/gcal.widget.component"; +import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google_docs/gdoc.widget.component"; @NgModule({ imports: [ @@ -71,6 +72,7 @@ import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google_cal CustomWidgetConfigComponent, EtherpadWidgetConfigComponent, GoogleCalendarWidgetConfigComponent, + GoogleDocsWidgetConfigComponent, // Vendor ], diff --git a/web/app/app.routing.ts b/web/app/app.routing.ts index 9797839..660be2b 100644 --- a/web/app/app.routing.ts +++ b/web/app/app.routing.ts @@ -9,6 +9,7 @@ import { RiotHomeComponent } from "./riot/riot-home/home.component"; import { CustomWidgetConfigComponent } from "./configs/widget/custom/custom.widget.component"; import { EtherpadWidgetConfigComponent } from "./configs/widget/etherpad/etherpad.widget.component"; import { GoogleCalendarWidgetConfigComponent } from "./configs/widget/google_calendar/gcal.widget.component"; +import { GoogleDocsWidgetConfigComponent } from "./configs/widget/google_docs/gdoc.widget.component"; const routes: Routes = [ {path: "", component: HomeComponent}, @@ -40,6 +41,11 @@ const routes: Routes = [ component: GoogleCalendarWidgetConfigComponent, data: {breadcrumb: "Google Calendar Widgets", name: "Google Calendar Widgets"} }, + { + path: "googledocs", + component: GoogleDocsWidgetConfigComponent, + data: {breadcrumb: "Google Doc Widgets", name: "Google Doc Widgets"} + }, ], }, ], diff --git a/web/app/configs/widget/google_docs/gdoc.widget.component.html b/web/app/configs/widget/google_docs/gdoc.widget.component.html new file mode 100644 index 0000000..9551b14 --- /dev/null +++ b/web/app/configs/widget/google_docs/gdoc.widget.component.html @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/web/app/configs/widget/google_docs/gdoc.widget.component.scss b/web/app/configs/widget/google_docs/gdoc.widget.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/web/app/configs/widget/google_docs/gdoc.widget.component.ts b/web/app/configs/widget/google_docs/gdoc.widget.component.ts new file mode 100644 index 0000000..8d4078b --- /dev/null +++ b/web/app/configs/widget/google_docs/gdoc.widget.component.ts @@ -0,0 +1,13 @@ +import { WidgetComponent } from "../widget.component"; +import { WIDGET_GOOGLE_DOCS } from "../../../shared/models/widget"; +import { Component } from "@angular/core"; + +@Component({ + templateUrl: "gdoc.widget.component.html", + styleUrls: ["gdoc.widget.component.scss"], +}) +export class GoogleDocsWidgetConfigComponent extends WidgetComponent { + constructor() { + super(WIDGET_GOOGLE_DOCS, "Google Docs Widget", "generic", "googleDocs"); + } +} \ No newline at end of file diff --git a/web/app/riot/riot-home/home.component.ts b/web/app/riot/riot-home/home.component.ts index a686d32..9e149ef 100644 --- a/web/app/riot/riot-home/home.component.ts +++ b/web/app/riot/riot-home/home.component.ts @@ -147,8 +147,7 @@ export class RiotHomeComponent { this.toaster.pop("error", errorMessage); }); } else { - // TODO: Navigate to edit screen - console.log("EDIT SCREEN FOR " + integration.displayName); + console.log("Navigating to edit screen for " + integration.category + " " + integration.type); this.router.navigate(['riot-app', integration.category, integration.type]); } }