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
804
Issues
804
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
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
00804c2a
Commit
00804c2a
authored
11 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): never call the legacy categories modal - 2124
parent
0dc35827
master
No related merge requests found
Pipeline
#89900088
failed with stages
in 49 minutes and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/app/modules/auth/login.component.spec.ts
src/app/modules/auth/login.component.spec.ts
+5
-5
src/app/modules/auth/login.component.ts
src/app/modules/auth/login.component.ts
+1
-1
No files found.
src/app/modules/auth/login.component.spec.ts
View file @
00804c2a
...
...
@@ -128,11 +128,11 @@ describe('LoginComponent', () => {
it
(
'
should redirect after registering
'
,
()
=>
{
comp
.
registered
();
expect
(
signupModalServiceMock
.
setDisplay
).
toHaveBeenCalled
();
expect
(
signupModalServiceMock
.
setDisplay
.
calls
.
mostRecent
().
args
[
0
]).
toBe
(
'
categories
'
);
expect
(
signupModalServiceMock
.
open
).
toHaveBeenCalled
();
//
expect(signupModalServiceMock.setDisplay).toHaveBeenCalled();
//
expect(signupModalServiceMock.setDisplay.calls.mostRecent().args[0]).toBe(
//
'categories'
//
);
//
expect(signupModalServiceMock.open).toHaveBeenCalled();
expect
(
loginReferrerServiceMock
.
navigate
).
toHaveBeenCalled
();
expect
(
loginReferrerServiceMock
.
navigate
.
calls
.
mostRecent
().
args
[
0
]
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/auth/login.component.ts
View file @
00804c2a
...
...
@@ -73,7 +73,7 @@ export class LoginComponent {
registered
()
{
if
(
this
.
redirectTo
)
this
.
navigateToRedirection
();
else
{
this
.
modal
.
setDisplay
(
'
categories
'
).
open
();
//
this.modal.setDisplay('categories').open();
this
.
loginReferrer
.
navigate
({
defaultUrl
:
'
/
'
+
this
.
session
.
getLoggedInUser
().
username
,
});
...
...
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