Skip to content

Commit 5151853

Browse files
committed
added SlackLoginWindow, still trying to setup vue-router to redirect properly
1 parent c8ad87c commit 5151853

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/components/file_system_interface/SaveProjectComponent.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import fs from 'fs-extra'
1616
const { remote } = require('electron')
1717
const Mousetrap = require('mousetrap')
1818
19+
// might not be optimal to import like this, since entire slackApiStuff object is imported while only one of its properties is used
1920
import slackApiStuff from '../../../secretStuff/slackApiStuff.js'
2021
const slackWebhookURL = slackApiStuff.slackWebhookURL
2122
@@ -122,8 +123,10 @@ export default {
122123
// still must refactor to dynamically work with user's Slack
123124
notifySlack () {
124125
remote.dialog.showMessageBox({
126+
title: 'Notify Slack?',
125127
message: 'Save successful. Would you like to notify your team on Slack?',
126-
buttons: ['No', 'Yes']
128+
buttons: ['No', 'Yes'],
129+
defaultId: 1
127130
},
128131
response => {
129132
if (response === 1) {

src/router/routes.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11

22
const routes = [
3+
{
4+
path: '/start',
5+
// redirect: 'https://slack.com/openid/connect/authorize?scope=openid%20profile&response_type=code&redirect_uri=https%3A%2F%2Flocalhost/slacklogin&client_id=2696943977700.2696948669268'
6+
component: () => import('components/slack_login/SlackLoginWindow.vue')
7+
},
8+
{
9+
path: '/slacklogin',
10+
// redirect: 'https://slack.com/openid/connect/authorize?scope=openid%20profile&response_type=code&redirect_uri=https%3A%2F%2Flocalhost/slacklogin&client_id=2696943977700.2696948669268'
11+
redirect: '/pow'
12+
},
313
{
414
path: '/',
515
component: () => import('layouts/MyLayout.vue'),

0 commit comments

Comments
 (0)