mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-22 02:02:14 +00:00
- Add `getGroupsAbridged` which returns a subset of group data for dropdowns and other places where all groups are listed - Remove unnecessary checks for `canSeeGroup` in `groups.scala.html` since all users can see all groups - Move `ZoneController` initialization in `manageZone.scala.html` to higher level to avoid waiting for groups to load when expanding the select box - Add `PreparePortalHook` to automatically run `prepare-portal.sh` when `project porta; run` is executed
15 lines
321 B
Scala
15 lines
321 B
Scala
import scala.sys.process.Process
|
|
import play.sbt.PlayRunHook
|
|
import sbt.File
|
|
|
|
object PreparePortalHook {
|
|
def apply(base: File): PlayRunHook = {
|
|
object GruntProcess extends PlayRunHook {
|
|
override def beforeStarted(): Unit = {
|
|
Process("./prepare-portal.sh", base).!
|
|
}
|
|
}
|
|
GruntProcess
|
|
}
|
|
}
|