Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
897
Issues
897
List
Boards
Labels
Service Desk
Milestones
Merge Requests
48
Merge Requests
48
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
451e611b
Commit
451e611b
authored
2 hours ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): open wire modal after logging in if the modal was opened
parent
b6c63659
epic/minds-pro
1 merge request
!528
WIP: (feat): Minds Pro
Pipeline
#80475836
failed with stages
in 8 minutes and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
channel.component.ts
src/app/modules/pro/channel/channel.component.ts
+7
-3
channel.service.ts
src/app/modules/pro/channel/channel.service.ts
+11
-5
No files found.
src/app/modules/pro/channel/channel.component.ts
View file @
451e611b
...
...
@@ -66,7 +66,7 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
protected
cd
:
ChangeDetectorRef
,
protected
modal
:
SignupModalService
,
protected
modalService
:
OverlayModalService
,
protected
injector
:
Injector
protected
injector
:
Injector
,
)
{}
ngOnInit
()
{
...
...
@@ -90,6 +90,10 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
this
.
modalService
.
setContainer
(
this
.
overlayModal
)
.
setRoot
(
this
.
element
.
nativeElement
);
if
(
sessionStorage
.
getItem
(
'
pro::wire-modal::open
'
))
{
this
.
wire
();
}
}
listen
()
{
...
...
@@ -127,8 +131,8 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
const
title
=
[
(
this
.
channel
.
pro_settings
.
title
as
string
)
||
this
.
channel
.
name
||
this
.
channel
.
username
,
this
.
channel
.
name
||
this
.
channel
.
username
,
];
switch
(
this
.
type
)
{
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/pro/channel/channel.service.ts
View file @
451e611b
...
...
@@ -41,7 +41,7 @@ export class ProChannelService {
protected
entitiesService
:
EntitiesService
,
protected
session
:
Session
,
protected
route
:
ActivatedRoute
,
protected
modalService
:
OverlayModalService
protected
modalService
:
OverlayModalService
,
)
{}
async
load
(
id
:
string
)
{
...
...
@@ -101,9 +101,9 @@ export class ProChannelService {
}
async
getContent
({
limit
,
offset
,
}:
{
limit
?:
number
;
offset
?
}
=
{}):
Promise
<
{
limit
,
offset
,
}:
{
limit
?:
number
;
offset
?
}
=
{}):
Promise
<
{
content
:
Array
<
any
>
;
offset
:
any
;
}
>
{
...
...
@@ -276,9 +276,15 @@ export class ProChannelService {
}
wire
()
{
sessionStorage
.
setItem
(
'
pro::wire-modal::open
'
,
'
1
'
);
this
.
modalService
.
create
(
WireCreatorComponent
,
this
.
currentChannel
,
{
onComplete
:
()
=>
{},
onComplete
:
()
=>
{
sessionStorage
.
removeItem
(
'
pro::wire-modal::open
'
)
},
})
.
onDidDismiss
(()
=>
{
sessionStorage
.
removeItem
(
'
pro::wire-modal::open
'
)
})
.
present
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment