Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Added ability to copy schedule links #487

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

Malorn44
Copy link
Member

@Malorn44 Malorn44 commented Sep 2, 2019

It's not fully working. But the basic functionality is here.

What is working:

  • Schedule link copying
  • Replacing selected sections
  • Keeping selected sections

What isn't working:

  • A temporary schedule will always initialize to index 0 even if another is specified.

I don't know exactly how to fix this yet, but I do know the issue. The line that I need for setting the index isn't running when it needs to be run. I was able to fix this by putting in a timeout but that is way too slow. Going to expand on this later to add that functionality, but for now I feel it is more important to have at least this out there to be used.

@Malorn44
Copy link
Member Author

Malorn44 commented Sep 2, 2019

actually don't merge this yet. I just found an error that I need to fix

@Malorn44
Copy link
Member Author

Malorn44 commented Sep 2, 2019

alright now its fixed

/* TODO: schedule index setting is not yet implemented */

let url: string = window.location.href;
let i1: number = url.indexOf('schedules?section_ids=');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest refactoring this to use https://angular.io/api/router/ActivatedRoute here before merging, I think it would make this code a lot cleaner

@tobiasjpark tobiasjpark mentioned this pull request Oct 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants